package com.dz.pojo;

import java.util.Date;
import java.util.UUID;

public class Crime {

    private UUID mId;
    private String mTitle;
    private Date mDate;
    private boolean mSolved;

    //嫌疑人
    private String mSuspect;

    //嫌疑人电话号码
    private String mNumber;

    public Crime() {
        //调用
        this(UUID.randomUUID());
//        mId = UUID.randomUUID();
//        mDate = new Date();
    }
    public Crime(UUID id){
        mId = id;
        mDate = new Date();
    }
    //
    public String getPhotoFileName(){
        return "IMG_"+getId().toString()+".jpg";
    }

    public UUID getId() {
        return mId;
    }

    public String getTitle() {
        return mTitle;
    }

    public void setTitle(String title) {
        mTitle = title;
    }

    public Date getDate() {
        return mDate;
    }

    public void setDate(Date date) {
        mDate = date;
    }

    public boolean isSolved() {
        return mSolved;
    }

    public void setSolved(boolean solved) {
        mSolved = solved;
    }

    public String getSuspect() {
        return mSuspect;
    }

    public void setSuspect(String suspect) {
        mSuspect = suspect;
    }

    public String getNumber() {
        return mNumber;
    }

    public void setNumber(String number) {
        mNumber = number;
    }
}
